// @ts-ignore
/* eslint-disable */
import {request} from "../../utils/request";

/** 获取 线索上报  - 选题计划 POST */
export async function getCuesTopicPage(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<CuesTopicData.TopicPage[]>>('/cues/topic/page', {
    method: 'POST',
    data: options || {},
  });
}

/** 保存 线索上报  - 选题计划 POST */
export async function saveCuesTopic(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/topic/save', {
    method: 'POST',
    data: options || {},
  });
}

/** 保存 线索上报  - 选题计划 获取 指派单位  POST */
export async function saveCuesTopicTreeAssignOrganization(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AdminOrganizationData.Organization[]>>(
    '/cues/topic/save/treeAssignOrganization',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 保存 线索上报  - 选题计划 获取可指派的人  POST */
export async function getShareAccountPage(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>(
    '/cues/topic/save/getShareAccountPage',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 保存 线索上报  - 选题计划 更新指派人  POST */
export async function resetShareAccount(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>(
    '/cues/topic/update/shareAccount',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 删除 线索上报  - 选题计划 POST */
export async function deleteCuesTopic(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/topic/delete', {
    method: 'POST',
    data: options || {},
  });
}

/** 更新 线索上报  - 选题计划状态  POST */
export async function updateCuesTopicState(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/topic/update/state', {
    method: 'POST',
    data: options || {},
  });
}

/**获取 线索上报  - 选题计划 详情  POST */
export async function getCuesTopicDetails(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesTopicData.TopicDetails>>('/cues/topic/details', {
    method: 'POST',
    data: options || {},
  });
}

